
package com.kugou.game.sdk.entity;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * 描述:强制更新返回信息实体类
 * 
 * @author ljc
 * @since 2015-1-17 下午12:48:32
 */
public class ForceUpdateInfo implements Parcelable {

    private int versionCode;

    private String packageAddress;

    private String UpdateContent;

    private String bannerTitle;

    private String bannerUrl;

    private boolean isUpdate;

    private String appName;

    private String packageName;

    private long fileSize;

    private String linkUrl;

    public int getVersionCode() {
        return versionCode;
    }

    public void setVersionCode(int versionCode) {
        this.versionCode = versionCode;
    }

    public String getPackageAddress() {
        return packageAddress;
    }

    public void setPackageAddress(String packageAddress) {
        this.packageAddress = packageAddress;
    }

    public String getUpdateContent() {
        return UpdateContent;
    }

    public void setUpdateContent(String updateContent) {
        UpdateContent = updateContent;
    }

    public String getBannerTitle() {
        return bannerTitle;
    }

    public void setBannerTitle(String bannerTitle) {
        this.bannerTitle = bannerTitle;
    }

    public String getBannerUrl() {
        return bannerUrl;
    }

    public void setBannerUrl(String bannerUrl) {
        this.bannerUrl = bannerUrl;
    }

    public boolean isUpdate() {
        return isUpdate;
    }

    public void setUpdate(boolean isUpdate) {
        this.isUpdate = isUpdate;
    }

    public String getAppName() {
        return appName;
    }

    public void setAppName(String appName) {
        this.appName = appName;
    }

    public String getPackageName() {
        return packageName;
    }

    public void setPackageName(String packageName) {
        this.packageName = packageName;
    }

    public long getFileSize() {
        return fileSize;
    }

    public void setFileSize(long fileSize) {
        this.fileSize = fileSize;
    }

    public String getLinkUrl() {
        return linkUrl;
    }

    public void setLinkUrl(String linkUrl) {
        this.linkUrl = linkUrl;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeInt(versionCode);
        dest.writeString(packageAddress);
        dest.writeString(UpdateContent);
        dest.writeString(bannerTitle);
        dest.writeString(bannerUrl);
        dest.writeByte((byte) (isUpdate ? 1 : 0));
        dest.writeString(appName);
        dest.writeString(packageName);
        dest.writeLong(fileSize);
        dest.writeString(linkUrl);

    }

    public static final Creator<ForceUpdateInfo> CREATOR = new Creator<ForceUpdateInfo>() {

        @Override
        public ForceUpdateInfo createFromParcel(Parcel source) {
            ForceUpdateInfo dest = new ForceUpdateInfo();
            dest.versionCode = source.readInt();
            dest.packageAddress = source.readString();
            dest.UpdateContent = source.readString();
            dest.bannerTitle = source.readString();
            dest.bannerUrl = source.readString();
            dest.isUpdate = (source.readByte() == 1);
            dest.appName = source.readString();
            dest.packageName = source.readString();
            dest.fileSize = source.readLong();
            dest.linkUrl = source.readString();
            return dest;
        }

        @Override
        public ForceUpdateInfo[] newArray(int size) {
            return new ForceUpdateInfo[size];
        }
    };

}
